package com.nuoniu.sibanyun.entity.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @ClassName VoucherDetailBo
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2020/12/24 16:17
 **/
@Data
@ApiModel("单据明细")
public class VoucherDetailBo extends BaseEntity {


    @ApiModelProperty(value = "公司ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "单据id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "来源明细ID")
    @TableField("source_detail_id")
    private Integer sourceDetailId;

    @ApiModelProperty(value = "物料id")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "主计量ID")
    @TableField("base_unit")
    private Integer baseUnit;

    @ApiModelProperty(value = "数量（主计量）")
    @TableField("base_quantity")
    private BigDecimal baseQuantity;

    @ApiModelProperty(value = "累计执行数量")
    @TableField("cum_execute_quantity")
    private BigDecimal cumExecuteQuantity = new BigDecimal(0);

    @ApiModelProperty(value = "累计执行情况")
    @TableField("cum_execute_json")
    private String cumExecuteJson;

    @ApiModelProperty(value = "累计退货数量（普通退货）")
    @TableField("cum_ret_quantity")
    private BigDecimal cumRetQuantity = new BigDecimal(0);


}
